package com.pllandxzx.mapper;

import com.pll.pojo.Merchant;
import com.pllandxzx.bean.MerchantQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

@Mapper
public interface AiCatMapper
{
    // 查询所有商户
    @Select("SELECT * FROM merchant")
    List<Merchant> getMerchantList();

    // 根据条件查询商户
    List<Merchant> queryMerchants(MerchantQuery query);
}
